interface FetchIntercityTicketSetListAPIResData {
  code: number
  msg: string
  time: string
  data: {
    total: number
    per_page: number
    current_page: number
    last_page: number
    data: IntercityTicketSet[]
  }
}

interface FetchIntercityTicketSetListAPIParams {
  page: string
  limit: string
}

export function fetchIntercityTicketSetListAPI(params: FetchIntercityTicketSetListAPIParams, token: string) {
  return httpInstance.get<FetchIntercityTicketSetListAPIResData, FetchIntercityTicketSetListAPIParams>(
    '/api/intercity/index',
    { params, headers: { token } },
  )
}
